gnttab: limit mapcount() looping
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:25:35 +0000 (12:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:25:35 +0000 (12:25 +0200)
commit9f90cce7cfc13ef87f2262196f999741e7851450
tree5a1f5a10b63e45dd7f65a5b06e732656758f0bd3
parented48c2c71c85b00b4ed5af7acce98a7afd08523f
gnttab: limit mapcount() looping

The function doesn't need to return counts in the first place; all its
callers are after is whether at least one entry of a certain kind
exists. With that there's no point for that loop to continue once the
looked for condition was found to be met by one entry. Rename the
function to match the changed behavior.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c